﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using System.ComponentModel.DataAnnotations;

namespace MMITDomain.Entities
{
    public class Voucher
    {
        public  int Id
        {
            get;
            set;
        }

        public string PIN
        {
            get;
            set;
        }

        public string SerialNo
        {
            get;
            set;
        }

        public decimal? Value
        {
            get;
            set;
        }

        public bool IsUsed
        {
            get;
            set;
        }

        public DateTime? DateUsed
        {
            get;
            set;
        }

        public DateTime? DateGenerated
        {
            get;
            set;
        }

        //[NotMapped]
        //public virtual Account Account
        //{
        //    get;
        //    set;
        //}

        //[NotMapped]
        //public int? AccountId
        //{
        //    get;
        //    set;
        //}

        public long? TransactionId
        {
            get;
            set;
        }

        public virtual Transaction AssociatedTransaction
        {
            get;
            set;
        }

        public int? ParentId
        {
            get;
            set;
        }

        public int? GeneratedBy
        {
            get;
            set;
        }

    }
}
